package com.iuie.ns.datum.vo;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.iuie.ns.frame.annotation.SheetColumnDefine;

/**
 * 开发工具箱-表结构
 * @author iuie
 * @date 2018-01-25 15:23:02
 */
public class TableStructureVO implements Serializable {

	private static final long serialVersionUID = -3535764504304588166L;
	
	private Long id; // ID
	
	@SheetColumnDefine(name="表英文名", weight=1)
	private String enTableName; // 表名英文名
	
	@SheetColumnDefine(name="表中文名", weight=2)
	private String cnTableName; // 表名中文名
	
	@SheetColumnDefine(name="备注", weight=4)
	private String remark; // 备注
	
	@SheetColumnDefine(name="创建者", weight=3)
	private String creatorName; // 创建者姓名
	
	private String creatorId; // 创建者账号
	@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss")
	private Date createTime; // 创建时间
	private String className;
	
	private String tableName; // 用于查询
	
	private Long projectId; // 项目ID
	private String projectName; // 项目名称
	
	private List<TableFieldVO> fields; // 表对应的字段
	
	public Long getId() {
		return id;
	}
	public void setId(Long id) {
		this.id = id;
	}
	public String getEnTableName() {
		return enTableName;
	}
	public void setEnTableName(String enTableName) {
		this.enTableName = enTableName;
	}
	public String getCnTableName() {
		return cnTableName;
	}
	public void setCnTableName(String cnTableName) {
		this.cnTableName = cnTableName;
	}
	public String getRemark() {
		return remark;
	}
	public void setRemark(String remark) {
		this.remark = remark;
	}
	public String getCreatorName() {
		return creatorName;
	}
	public void setCreatorName(String creatorName) {
		this.creatorName = creatorName;
	}
	public String getCreatorId() {
		return creatorId;
	}
	public void setCreatorId(String creatorId) {
		this.creatorId = creatorId;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
	public List<TableFieldVO> getFields() {
		return fields;
	}
	public void setFields(List<TableFieldVO> fields) {
		this.fields = fields;
	}
	public String getTableName() {
		return tableName;
	}
	public void setTableName(String tableName) {
		this.tableName = tableName;
	}
	public Long getProjectId() {
		return projectId;
	}
	public void setProjectId(Long projectId) {
		this.projectId = projectId;
	}
	public String getProjectName() {
		return projectName;
	}
	public void setProjectName(String projectName) {
		this.projectName = projectName;
	}
	public String getClassName() {
		return className;
	}
	public void setClassName(String className) {
		this.className = className;
	}
}
